// Copyright (c) 2024 刻BITTER
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.


#pragma once


#ifndef SysTick_BASE

    #ifdef __CORTEX_M

        #if (__CORTEX_M == 0)

            #include <core_cm0.h>  // cm0 或者cm0plus 都无所谓

        #elif (__CORTEX_M == 1)

            #include <core_cm1.h>

        #elif (__CORTEX_M == 3)

            #include <core_cm3.h>

        #elif (__CORTEX_M == 4)

            #include <core_cm4.h>

        #elif (__CORTEX_M == 7)

            #include <core_cm7.h>

        #elif (__CORTEX_M == 23)

            #include <core_cm23.h>

        #elif (__CORTEX_M == 33)

            #include <core_cm33.h>

        #else

            #error "Unknown cortex code."

        #endif

    #else

        #error "Requires CMSIS core header."

    #endif


#endif